<%@ page pageEncoding='UTF-8'%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<s:set var="contextPath" value="#request.get('javax.servlet.forward.context_path')" scope="request" />
<!DOCTYPE html>
<head>
    <title>Prescription Registration</title>
    <%-- header --%>
    <jsp:include page="/WEB-INF/content/common/Header.jsp" flush="true"/>
    <script src="${contextPath}/js/prescription/prescription.js"></script>
</head>
<body class="metro home">
	<%-- tob-bar --%>
    <jsp:include page="/WEB-INF/content/common/TopBar.jsp" flush="true"/>
       	
	<div id="main-container" class="body-wrapper">
        <%-- tob-container --%>
    	<jsp:include page="/WEB-INF/content/common/TopContainer.jsp" flush="true"/>
        
    	<div id="body-container">
			<%-- header-container --%>
       		<s:set var="mode" value="'registration'"/>
   			<jsp:include page="/WEB-INF/content/prescription/PrescriptionHeaderContainer.jsp" flush="true"/>
   			
   			<legend>Select a patient for create the prescription</legend>
   			<%-- patient list --%>
   			<s:set var="patientSearchFormActionUrl" value="%{#contextPath}/patient/list"/>
   			<s:set var="view" value="'PrescriptionList'"/>
   			<jsp:include page="/WEB-INF/content/patient/CommonPatientList.jsp" flush="true"/>
    			
    		<%--
    		<div id="prescription-registration-selection-container" class="tile-area">
    			<div class="tile double double-vertical no-link">
    				<form action="${contextPath}/prescription/registration" method="get">
    					<legend>Create New Prescription</legend>
    					<div class="input-control text">
							<input type="text" name="patientId" value="" placeholder="input patient id"/>
							<button class="btn-clear"></button>
						</div>
						<div class="btn-container">
							<input type="submit" value="create"/>
							<a href="${contextPath}/patient/list" class="button place-right">Patient List</a>
						</div>
    				</form>
    			</div>
    			<div class="tile double double-vertical no-link">
    				<form action="${contextPath}/prescription/registration" method="get">
    					<legend>Continue Prescription</legend>
    					<div class="input-control text">
							<input type="text" name="rootPrescriptionId" value="" placeholder="input prescription id"/>
							<button class="btn-clear"></button>
						</div>
						<div class="btn-container">
							<input type="submit" value="continue"/>
						</div>
    				</form>
    			</div>
    		</div>
    		--%>
    	</div>
        
        <%-- bottom-container --%>
    	<jsp:include page="/WEB-INF/content/common/BottomContainer.jsp" flush="true"/>
        
	</div>
    
    <%-- footer-container --%>
    <jsp:include page="/WEB-INF/content/common/FooterContainer.jsp" flush="true"/>
    
</body>
</html>